<%-- 
    Document   : aggiungiCredito
    Created on : 7-ott-2010, 16.53.01
    Author     : erola
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Aggiungi credito</title>
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <base target="_self"/>
    </head>
    <body>
        <%@include file="WEB-INF/jspf/header.jspf"%>
        <!-- start page -->
        <div id="content">

            <c:choose>
                <c:when test="${!empty sessionScope.username}">
                    <div class="post" style="background: url(images/euro.png) no-repeat top right">
                        <h2 class="title">Aggiungi credito</h2>
                        <div class="entry">
                            <table>
                                <tr>
                                    <td>Numero carta: </td><td><input type="input" name="carta" disabled /></td>
                                </tr>
                                <tr>
                                    <td>Credito: </td><td><input type="text" name="credito" size="4" maxlength="4" value="00000"/>.<input type="text" name="dec" size="2" maxlength="2" value="00" /></td>
                                </tr>
                            </table>
                            <input type="submit" value="Aggiungi al conto" />
                        </div>
                    </div>
                </c:when>

                <c:otherwise>
                    <div class="post">
                        <h2 class="title">Errore</h2>

                        <div class="entry">
                            <p>Non sei loggato!</p>

                        </div>

                    </div>
                </c:otherwise>
            </c:choose>
        </div>

        <%@include file="WEB-INF/jspf/nav.jspf"%>
        <!-- end page -->

        <%@include file="WEB-INF/jspf/footer.jspf"%>
    </body>
</html>